﻿using LDAP.BLL;
using LDAP.Entity;
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace LDAP.Web.View.Attendance
{
    public partial class VerifyTickets : AngelBasePage
    {
        public int Year;
        public int Month;

        public List<Exceptionform> ExceptionForm;
        public List<Angel> AngelList;
        public List<User> All;

        protected void Page_Load(object sender, EventArgs e)
        {
            Year = Tools.Web.Request.GetQueryInt("y", 0);
            Month = Tools.Web.Request.GetQueryInt("m", 0);

            try
            {
                DateTime t = new DateTime(Year, Month, 1);
                Year = t.Year;
                Month = t.Month;
            }
            catch
            {
                Year = DateTime.Now.Year;
                Month = DateTime.Now.Month;
            }

            DateTime start = new DateTime(Year, Month, 1);
            ExceptionForm = BizExceptionform.GetServiceListByUserId(CurrentUser, start, start.AddMonths(1).AddDays(-1));

            AngelList = BizAngel.GetAll().ToList();

            string message = "";
            All = BizUser.AllUser(ref message);
        }
    }
}